#ifndef TOOLS_TCPLISTENER_INTERFACE_H_
#define TOOLS_TCPLISTENER_INTERFACE_H_

#include <stdint.h>
#include "Global.h"

namespace Tool
{

class ExportAPI ITcpListener
{
public:
    virtual ~ITcpListener() {}

public:
    virtual void OnConnect(const char* pAddress, uint16_t nPort) = 0;
    virtual void OnDisconnect(const char* pAddress, uint16_t nPort) = 0;
    virtual void OnReceive(const char* pAddress, uint16_t nPort, const void* pBuffer, size_t nLength) = 0;
    virtual void OnNotify(const char* pAddress, uint16_t nPort, const char* pMsg) = 0;
};

}

#endif
